package com.chanyachting.emall.serviceImpl;

import java.util.List;

import com.chanyachting.emall.dao.CompanyproductcategoryDAO;
import com.chanyachting.emall.domain.Companyproductcategory;
import com.chanyachting.emall.domain.Productcategory;
import com.chanyachting.emall.service.CompanyproductcategoryService;

public class CompanyproductcategoryServiceImpl implements CompanyproductcategoryService{

	private CompanyproductcategoryDAO cpcDao;
	
	public CompanyproductcategoryServiceImpl(){
		this.cpcDao = new CompanyproductcategoryDAO();
	}
	public List<Companyproductcategory> getCompanyproductcategoryByProductcategoryId(
			String productcategoryId) {
		
		return this.cpcDao.getCompanyproductcategoryByProductcategoryId(productcategoryId);
	}
	public List<Productcategory> getProductcategoryNameByCompanyId(
			String companyId) {
		return this.cpcDao.getProductcategoryNameByComanyId(companyId);
	}

	

}
